﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

namespace ForumsBrowser
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            int workerThreads = 0;
            int completionPortThreads = 0;
            int desiredMinimum = 10;
            System.Threading.ThreadPool.GetMinThreads(out workerThreads, out completionPortThreads);
            if (workerThreads < desiredMinimum)
                System.Threading.ThreadPool.SetMinThreads(desiredMinimum, completionPortThreads);
        }
    }
}
